package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.ProductDetails;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: ProductDetailsMapper
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/20 20:21
 * Version 1.0
 */
@Mapper
public interface ProductDetailsMapper {
    //3 保存商品的详情数据到product_details表
    void save(ProductDetails productDetails);

    //3 根据商品id查询商品详情数据 product_details
    ProductDetails findProductDetailsByProductId(Integer id);

    //修改product_details
    void updateById(ProductDetails productDetails);

    // 根据商品的id删除商品的详情数据
    void deleteByProductId(Long id);
}
